struct COUPLEOFPOINTS {
        int xl;
		int xh;
		int y;
};

class FourEdges
{
	POINT *a, *b, *c, *d;
	int FourEdges();
	int ~FourEdger();
	BOOL Sort();
	BOOL GetLimits(COUPLEOFPOINTS *result[]);
};

inline int getMax(int a, int b)
{
	if (a > b) 
		return a;
	else
		return b;
}

inline int getMin(int a, int b)
{
	if (a < b) 
		return a;
	else 
		return b;
}